package com.changgou.user.feign;

import com.changgou.entity.Result;
import com.changgou.user.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "user")
@RequestMapping("/address")
public interface AddressFeign {

    /**
     * 根据当前登录用户名称查询地址信息
     * @return
     */
    @GetMapping("/list")
    public Result<List<Address>> findAddressByUseranem();
}
